﻿using System;
using System;
using System.Collections.Generic;
using BIS.Portal.Modules.CMS.DAL;
using BIS.Portal.Modules.CMS.Entity;

namespace BIS.Portal.Modules.CMS.BO
{
    public class ClientCmsArticleCategoryAndCategoryBO
    {
        /// <summary>
        /// Gets all display  Article and ArticleUseLanguage  .
        /// </summary>
        /// <returns></returns>
        public static IList<ClientCmsArticleCategoryAndCategoryEntity> GetCategoryName(int iParent_category_id, int iLanguage_in_use_id)
        {
            return ClientCmsArticleCategoryAndCategoryDAL.GetCategoryAndLanguage(iParent_category_id, iLanguage_in_use_id);
        }
       /// <summary>
       /// Hiển thị category name theo category id
       /// </summary>
       /// <param name="iCategoryId"></param>
       /// <returns></returns>
        public  static  ClientCmsArticleCategoryAndCategoryEntity GetCategoryNameById(int iCategoryId)
        {
            return ClientCmsArticleCategoryAndCategoryDAL.GetCategoryNameById(iCategoryId);
        }
        public static IList<ClientCmsMenuEnity> GetCategoryForLanguage(int iLanguage_in_use_id)
        {
            return ClientCmsMenuDAL.GetCategoriesForMenu(iLanguage_in_use_id);
        }
    }
}
